-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added the wired charger #172
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is looking really good! Very nicely done.
As for block models and states, I'll have a look at what to suggest for that when I return from work :)
src/machines/java/com/enderio/machines/common/blockentity/WiredChargerBlockEntity.java
Outdated
Show resolved
Hide resolved
src/machines/java/com/enderio/machines/common/blockentity/WiredChargerBlockEntity.java
Show resolved
Hide resolved
src/machines/java/com/enderio/machines/common/blockentity/WiredChargerBlockEntity.java
Outdated
Show resolved
Hide resolved
src/machines/java/com/enderio/machines/common/blockentity/WiredChargerBlockEntity.java
Outdated
Show resolved
Hide resolved
src/machines/java/com/enderio/machines/common/blockentity/WiredChargerBlockEntity.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is looking good so far functionally, not done code review yet but I've a couple things that you should look at (might need some help from chonky on the 2nd):
- The slots down the side should show your armor and offhand slots, might want to look at vanilla to see how to draw the template shapes if the slots are empty.
- Due to the unconventional framing of the GUI, the io config spills out over the edges of the visual space.
Other than these though, functionally this works great! Nice work!
CC @mystchonky for the above :) |
The fix for this should be pretty straightforward, I will create a small PR which should allow adding insets to renderer preview. Screens would be able to customize whatever size/shape they want. |
Now that #295 is merged, you can add insets and correctly size the ioconfig renderer. Add insets and pass it to constructor
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm really happy with this; thanks a lot for your work on this!
Description
Hey !
This is what I come up with for the Wired Charger !
I think that it just needs some balancing when calculating the amount of energy extracted while charging but we can discuss it here.
Fixes issue(s): #144
Todo
Checklist: